import instance from '../axios.service.js';
export default {
    login: (data) => instance.post(`/ai-repost/api/user/login`, data),
    createUser: (data) => instance.post(`/ai-repost/api/user/create`, data),
    getUserInfo: (userId) => instance.get(`/ai-repost/api/user/get?userId=${userId}`),
    updateUserInfo: (data) => instance.post(`/ai-repost/api/user/info-update`, data),
    updateUserPassword: (data) => instance.post(`/ai-repost/api/user/password-reset`, data),
    getModelList: (data) => instance.get(`/ai-repost/api/user/model-list`, data),
    getRecordList: (data) => instance.post(`/ai-repost/api/record/query-list`, data),
    getApiToken: (data) => instance.post(`/ai-repost/api/auth/get-api-token`, data),
    getAuthCode: (data) => instance.post(`/ai-repost/open-api/auth/code`, data),

}
